package com.example.entity.vo.User;

import com.example.entity.auth.SysMenu;
import com.example.entity.vo.CMSMFVo;
import com.example.entity.vo.auth.MesPermission;
import com.example.entity.vo.auth.YFPermission;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

@Data
@AllArgsConstructor
@ApiModel(value = "用户登录Vo")
public class UserLoginVo {

    List<SysMenu> mesMenuList;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "登录者编号")
    @JsonProperty("userId")
    private String ma001;

    @ApiModelProperty(value = "登录者名称")
    @JsonProperty("userName")
    private String ma002;

    @ApiModelProperty("易飞权限组")
    private YFPermission yfPermission;

    @ApiModelProperty("MES权限")
    private MesPermission mesPermission;

    @ApiModelProperty("数量小数位数取数 0.整数、1.小数一位、2.小数二位、3.小数三位、4.小数四位、5.小数五位、6.小数六位")
    private Integer num;

    @ApiModelProperty("单价小数位数取数")
    private List<CMSMFVo> unitprice;

    @ApiModelProperty("自定义内容")
    private String content;

    @ApiModelProperty("是否有生管确认日页面权限 0为没有,大于0为有")
    private Integer whether;

//    private List<SysRole> roles;
//
//    private List<SysMenu> permisses;

}
